# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Ronald van Haren <ronald.archlinux.org>
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>

pkgname=speedcrunch
pkgver=0.12.0
pkgrel=3
pkgdesc="Simple but powerful calculator using Qt"
arch=(loong64 x86_64)
url="https://speedcrunch.org/"
license=(GPL2)
depends=(qt5-tools)
makedepends=(cmake)
source=("https://bitbucket.org/heldercorreia/speedcrunch/get/release-$pkgver.tar.bz2")
md5sums=('f294f00d9ab8153ad4f2bebaaa93176c')

build() {
  cd */src
  cmake . -DCMAKE_INSTALL_PREFIX=/usr
  make
}

package() {
  cd */src
  make DESTDIR="$pkgdir" install
}
